package com.xjrh.traintravel.collector.netty.command.access;

import com.xjrh.traintravel.collector.netty.command.BaseCommand;

import java.io.Serializable;

/**
 * 设备-接入（登录）-上报数据
 *
 * @author snps
 * @create 2022-02-24 12:28
 * @describe
 **/
public class AccessData extends BaseCommand implements Serializable {

    private static final long serialVersionUID = 4065245365126004244L;


    /**
     * 设备类型
     *      1-I型设备
     *      2-II型设备
     */
    private int equipmentType;

    /**
     * 设备编号
     *      1,2,3,4,5,6
     */
    private int equipmentNo;

    /**
     * 段号
     */
    private String part1No;

    /**
     * 车列
     */
    private String part2No;

    /**
     * 车号
     */
    private String part3No;

    /**
     * 软件版本
     */
    private String softwareVersion;

    /**
     * 硬件版本
     */
    private String hardwareVersion;


    /*****************************************
     * Getter and Setter
     */
    public int getEquipmentType() {
        return equipmentType;
    }

    public void setEquipmentType(int equipmentType) {
        this.equipmentType = equipmentType;
    }

    public int getEquipmentNo() {
        return equipmentNo;
    }

    public void setEquipmentNo(int equipmentNo) {
        this.equipmentNo = equipmentNo;
    }

    public String getPart1No() {
        return part1No;
    }

    public void setPart1No(String part1No) {
        this.part1No = part1No;
    }

    public String getPart2No() {
        return part2No;
    }

    public void setPart2No(String part2No) {
        this.part2No = part2No;
    }

    public String getPart3No() {
        return part3No;
    }

    public void setPart3No(String part3No) {
        this.part3No = part3No;
    }

    public String getSoftwareVersion() {
        return softwareVersion;
    }

    public void setSoftwareVersion(String softwareVersion) {
        this.softwareVersion = softwareVersion;
    }

    public String getHardwareVersion() {
        return hardwareVersion;
    }

    public void setHardwareVersion(String hardwareVersion) {
        this.hardwareVersion = hardwareVersion;
    }

    @Override
    public String toString() {
        return "AccessData{" +
                "equipmentType=" + equipmentType +
                ", equipmentNo=" + equipmentNo +
                ", part1No='" + part1No + '\'' +
                ", part2No='" + part2No + '\'' +
                ", part3No='" + part3No + '\'' +
                ", softwareVersion='" + softwareVersion + '\'' +
                ", hardwareVersion='" + hardwareVersion + '\'' +
                '}';
    }

}